import request from '@/utils/request';

//登录
export function login(data) {
	return request({
		method: 'post',
		url: 'login',
		headers: { noNeedLogin: true },
		params: data
	})
}

//注册
export function register(data) {
	return request({
		method: 'post',
		url: 'openApi/system/register',
		headers: { noNeedLogin: true },
		data
	})
}

//发送验证码
export function sendVerifyCode(data) {
	return request({
		method: 'post',
		url: 'openApi/image/register',
		headers: { noNeedLogin: true },
		data
	})
}

//生成验证码
export function genVerifyCode(account) {
	return request({
		method: "get",
		url: "openApi/image/getCode/" + account,
		headers: { noNeedLogin: true }
	});
}

//重置密码
export function resetPassword(data) {
	return request({
		method: 'post',
		url: 'openApi/system/findPass',
		headers: { noNeedLogin: true },
		data
	})
}

